package com.kehutong.wxapi.request;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 添加企业客户标签请求对象
 * @author: liukunlong
 * @date: 2021-03-04 19:26
 */
public class CorpTagAddRequest {

    /**
     * 调用接口凭证
     */
    private String accessToken;
    /**
     * 标签组id
     */ /**
     * group_id : GROUP_ID
     * group_name : GROUP_NAME
     * order : 1
     * tag : [{"name":"TAG_NAME_1","order":1},{"name":"TAG_NAME_2","order":2}]
     * agentid : 1000014
     */

    @JSONField(name = "group_id")
    private String groupId;
    /**
     * 标签组名称，最长为30个字符
     */
    @JSONField(name = "group_name")
    private String groupName;
    /**
     * 标签组次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
     */
    @JSONField(name = "order")
    private Integer order;
    /**
     * 标签对象
     */
    @JSONField(name = "tag")
    private List<TagDTO> tag;
    /**
     * 授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数
     */
    @JSONField(name = "agentid")
    private Integer agentid;


    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public List<TagDTO> getTag() {
        return tag;
    }

    public void setTag(List<TagDTO> tag) {
        this.tag = tag;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public static class TagDTO {
        /**
         * 添加的标签名称，最长为30个字符
         */ /**
         * name : TAG_NAME_1
         * order : 1
         */

        @JSONField(name = "name")
        private String name;
        /**
         * 标签次序值。order值大的排序靠前。有效的值范围是[0, 2^32)
         */
        @JSONField(name = "order")
        private Integer order;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getOrder() {
            return order;
        }

        public void setOrder(Integer order) {
            this.order = order;
        }
    }
}
